<template>
    <div>
        <h1>父组件</h1>
        <SubElement v-model="value1"  :value2.sync="value2" ></SubElement>
        <p>value1:{{ value1 }}</p>
        <p>value2:{{ value2 }}</p>
    </div>
</template>
<script>
import SubElement from '../components/SubElement.vue';
export default {
    components:{
        SubElement
    },
    data(){
        return {
            value1:"",
            value2:""
        }
    }
}
</script>
<style>
</style>